home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 1995 July & August / cd No4 joystick No62.iso / mac / pc / SHARE / LIGHTLIB / LANGUAGE.Z / LLIDDOC.H < prev    next >
C/C++ Source or Header  |  1995-02-23  |  2KB  |  54 lines

  1. // LLIDdoc.h : interface of the CLLIDDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CLLIDDoc : public CDocument
  6. {
  7. protected: // create from serialization only
  8.     CLLIDDoc();
  9.     DECLARE_DYNCREATE(CLLIDDoc)
  10.  
  11. // Attributes
  12. public:  
  13.  
  14.     // declare your LLI - object here
  15.             
  16.     LLOBJECT    lloImage,      // do zooming only on this Image
  17.                 lloOrigImage;  // keep a copy of the original image to 
  18.                                // avoid reloading or loss of quality of
  19.                                // the image after zoom or rotate
  20.  
  21. // Operations
  22. public:
  23.  
  24. // Implementation
  25. public:
  26.     virtual ~CLLIDDoc();
  27.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  28.     
  29.     // this member function returns the size of either the original    
  30.     // or the current image ( TRUE = original )
  31.     virtual CSize GetImageSize( BOOL OrigImage ); 
  32.                                                   
  33. #ifdef _DEBUG
  34.     virtual void AssertValid() const;
  35.     virtual void Dump(CDumpContext& dc) const; 
  36. #endif
  37.  
  38. protected:
  39.     virtual BOOL OnNewDocument();
  40.     
  41.     virtual void DeleteContents(); // clean up when closing or reopening a document
  42.  
  43. // Generated message map functions
  44. protected:
  45.  //{{AFX_MSG(CLLIDDoc)
  46.     virtual BOOL OnOpenDocument( const char *pszPathName );
  47.     virtual BOOL OnSaveDocument( const char *pszPathName );
  48.     afx_msg void OnGenMosaic();
  49.     //}}AFX_MSG
  50.  DECLARE_MESSAGE_MAP()
  51. };
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54.